import java.io.FileInputStream;
import java.io.IOException;

public class Test08 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("myio\\a.txt");
        byte[] bytes=new byte[3];
        int len=fis.read(bytes);
        String str=new String(bytes);
        System.out.println(str);
        int len2=fis.read(bytes);
        System.out.println(new String(bytes));
        int len3=fis.read(bytes);
        System.out.println(new String(bytes));
        int len4=fis.read(bytes,0,len);
        System.out.println(new String(bytes,0,len));
        int len5=fis.read(bytes);
        System.out.println(new String(bytes,0,len));


    }
}
